package com.qst.express.mapper;

import com.qst.express.entity.Express;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qst.express.entity.vo.ExpressVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author mjh
 * @since 2022-09-25
 */
public interface ExpressMapper extends BaseMapper<Express> {


    ExpressVo getExpressTotal();

    List<Express> rankByMonth();

    Express getName(@Param("userphone") String userphone);

    List<Express> rankByYear();

    List<Express> rankByAll();

    List<Map<String, Integer>> consoleMonth();
}
